require
		.config({
			urlArgs : "r=" + (new Date()).getTime(),
			baseUrl : './',
			paths : {
				'domReady' : '../../../assets/require/domReady',
				'text' : '../../../assets/require/text',
				'jquery' : '../../../assets/jquery/1.11.1/jquery.min',
				'JSON2' : '../../../assets/jquery/json2',
				'bootbox' : '../../../assets/jquery/bootbox.min',
				'ajaxSetup' : '../../../assets/js/core/ajaxSetup.r',
				'json' : '../../../assets/require/plugins/json',
				'cookie' : '../../../assets/jquery/jquery.cookie',
				'bootstrap' : '../../../assets/bootstrap/3.3.7/js/bootstrap.min',
				'bs.table' : '../../../assets/bootstrap-table/bootstrap-table.min',
				'bs.table-CN' : '../../../assets/bootstrap-table/locale/bootstrap-table-zh-CN.min',
				'bs.tree' : '../../../assets/boostrap-treeview/bootstrap-treeview.min',
				'bs.validator' : '../../../assets/bootstrap-validator/js/bootstrapValidator.min',
				'ko' : '../../../assets/knockout/knockout',
				'sco.msg' : '../../../assets/sco/js/sco.message',
				'platform.common' : '../../../assets/js/core/platform.common',
				// private
				'barview' : 'module/barview',
				'formview' : 'module/formview',
				'gridview' : 'module/gridview',
				'titleview' : 'module/titleview',
				'methods' : 'module/methods'
			},
			shim : {
				'bootstrap' : [ 'jquery' ],
				'sco.msg' : [ 'jquery' ],
				'platform.common' : [ 'jquery', 'sco.msg', 'ko', 'JSON2',
						'bootbox' ],
				'ajaxSetup' : [ 'jquery', 'platform.common' ],
				'bs.table' : [ 'bootstrap' ],
				'bs.tree' : [ 'bootstrap' ],
				'bs.table-CN' : [ 'bs.table' ]
			},
			waitSeconds : 1
		});
require([ 'domReady!', 'jquery', 'ko', 'platform.common', 'gridview',
		'titleview', 'formview', 'barview', 'methods' ], function(domReady, $,
		ko, platform) {
	var gridview = require('gridview');
	var titleview = require('titleview');
	var formview = require('formview');
	var barview = require('barview');
	platform.koBind(ko, gridview, 'codeGridView');
	platform.koBind(ko, titleview, 'modalHeader');
	platform.koBind(ko, formview, 'detailForm');
	platform.koBind(ko, barview, 'modalFooter');
	gridview.init();
});